// components/Menu/FootBar.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    leftIcon: String,
    leftText: String,
    leftStyle: String,
    leftOpenType: String,
    centerIcon: String,
    rightIcon: String,
    rightText: String,
    rightStyle: String,
    rightOpenType: String
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    leftTap: function(){
      let myEventOption = {
        bubbles: false,//事件是否冒泡
        composed: false,//事件是否可以穿越组件边界
        capturePhase: false //事件是否拥有捕获阶段
      }
      this.triggerEvent('left', {}, myEventOption);
    },
    centerTap:function(){
      let myEventOption = {
        bubbles: false,//事件是否冒泡
        composed: false,//事件是否可以穿越组件边界
        capturePhase: false //事件是否拥有捕获阶段
      }
      this.triggerEvent('center', {}, myEventOption);
    },
    rightTap: function(){
      let myEventOption = {
        bubbles: false,//事件是否冒泡
        composed: false,//事件是否可以穿越组件边界
        capturePhase: false //事件是否拥有捕获阶段
      }
      this.triggerEvent('right', {}, myEventOption);
    }
  }
})
